package com.app.designpatternslearn.structured.flyweightpattern

import com.app.designpatternslearn.structured.flyweightpattern.code.FlyweightFactory

fun main() {

    val flyweightFactory = FlyweightFactory()

    val iFlyweightOne = flyweightFactory.getFlyweight("aaa")
    iFlyweightOne?.operation()

    val iFlyweightFactoryTwo = flyweightFactory.getFlyweight("bbb")
    iFlyweightFactoryTwo?.operation()
}